package com.example.workshop.lesson8;

import com.example.workshop.lesson8.Filter;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class CollaborativeFilter implements Filter {


    public CollaborativeFilter() {
        super();
    }

    //输入电影
    public String[] getRecommendations(String movie) {
        //返回推荐电影
        return   new String[]{"星球大战","火星救援","星际穿越"};

    }
}
